package com.myproject.AnonymousClass;

public class Desk {

    static class Apple{

        public void method(){
            Book book = new Desk().new Book();
        }

        static class Core{

        }
    }

    class Book{

        public void method(){
            Apple apple = new Apple();
            sayHello();
        }
    }

    //不论是private 还是public 内部类都可以使用
    public void sayHello(){}
}
